Comparison of data signals using characteristic electronic thumbprints extracted therefrom

ABSTRACT

A characteristic thumbprint is extracted from a data signal, the thumbprint based on statistics relating to the data signal. The data signal can be compared indirectly by matching this thumbprint against one or more reference thumbprints. The data signal may be any type of signal, including streaming digitized audio or obtained from static files. A database may contain a number of these characteristic thumbprints, and the database can be searched for a particular thumbprint.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No.12/183,824, filed Jul. 31, 2008, now U.S. Pat. No. 7,853,438, which is acontinuation of U.S. application Ser. No. 10/132,091, filed Apr. 24,2002, now U.S. Pat. No. 7,421,376, which claims the benefit of U.S.Provisional Application No. 60/285,949, filed Apr. 24, 2001, each ofwhich is hereby incorporated by reference in its entirety.

BACKGROUND

The present invention relates generally to the extraction of acharacteristic thumbprint from a data signal, such as an audio datafile, and further to the comparison or matching of such thumbprints.

Because of the variations in file formats, compression technologies, andother methods of representing data, the problem of identifying a datasignal or comparing it to others raises significant technicaldifficulties. For example, in the case of digital music files on acomputer, there are many formats for encoding and compressing the songs.In addition, the songs are often sampled into digital form at differentdata rates and have slightly different characteristics. These minordifferences make direct comparison of such files a poor choice forefficient file or signal recognition or comparison. Direct filecomparison also does not allow comparison of media encoded in differentformats (e.g., comparing the same song encoded in MP3 and WAV).

For these reasons, identifying and tracking media and other content,such as that distributed over the Internet, is often done by attachingmetadata, watermarks, or some other code that contains identificationinformation for the media. However, this attached information is oftenincomplete, incorrect, or both. For example, metadata is rarelycomplete, and filenames are even more rarely uniform. In addition,approaches such as watermarking are invasive, altering the original filewith the added data or code. Another drawback of these approaches isthat they are vulnerable to tampering. Even if every media file were toinclude accurate identification data such as metadata or a watermark,the files could be “unlocked” (and thus pirated) if the information weresuccessfully removed.

Accordingly, other methods have been developed based on the concept ofanalyzing the content of a data signal itself. These method, however,fail because of their significant limitations and lack of robustness.Moreover, many of these techniques rely on knowing the beginning andending of a signal. As a result, they cannot identify a signal whosebeginning and end points are not defined, as in the case of streamingmedia provided over a broadcast network like the Internet. However,signal identification in streaming media is very desirable, for example,to independently determine which audio data files have been broadcastover the Internet.

One example of a content-based approach, U.S. Pat. No. 5,918,223, issuedJun. 29, 1999, entitled “Method and article of manufacture forcontent-based analysis, storage, retrieval, and segmentation of audioinformation,” describes a method for identifying “sounds” that fit aparticular set of attributes (e.g., sounds that are “scratchy” versussounds that are “bright”). This technique is adapted it for use in songrecognition applications, but the algorithm does not allow for theidentification of streaming signal sources, nor does the algorithm workwith other types of data signals apart from audio. Moreover, thealgorithm described in the '223 patent generates large 1000-characterthumbprints that are not well suited to client/server applications andother large volume applications. Lastly, the algorithm relies on theFast Fourier Transform (FFT) to process the audio signals, a processthat is resource-intensive and is thus not very efficient.

Accordingly, there exists a need to overcome existing limitations thatcurrent signal recognition techniques have failed to solve.

SUMMARY OF THE INVENTION

Accordingly, the present invention enables a characteristic thumbprintto be extracted from a data signal based on the content of that signal.This thumbprint can be matched against a set of reference thumbprints todetermine the identity of the signal or the similarity between twosignals. Because of the nature of the thumbprint extraction algorithm,the present invention does not suffer from many of the problems thatplague existing solutions, and as compared to such solutions, thepresent invention is fast, efficient, highly accurate, scalable, androbust.

In a first embodiment, the method includes extracting a characteristicstatistical thumbprint from at least a portion of a data signal at aparticular point in time. One of a number of embodiments for extractinga thumbprint includes passing the signal in parallel fashion through anumber of bandpass filters. For each filtered signal, a set of powerstatistics are computed. Then, a set of statistical metrics is computedbased on these power statistics. In one embodiment, these powerstatistics include the root-mean-square of the signal amplitude for asegment of the signal, and the set of statistical metrics includes aratio of the standard deviation to the mean for the power statistics foreach of the filtered signals. The thumbprint is constructed from the setof statistical metrics, which provide the variance of the data signalwithin each of a set of frequency bands. Therefore, closely matchingsignals sampled at corresponding points in time will result inthumbprints that are close to each other or are the same. Thumbprintscan be stored as vectors of the statistics, allowing for vector-basedoperations for comparison.

In addition, one contemplated aspect of the invention is the thumbprintitself, stored on a computer readable medium or fixed momentarily as atransmissible signal. Because the thumbprint is based on statisticsrelating to the frequency information of the corresponding signal, thepresent methods works on any kind of digital file format or analogsignal. In one embodiment, one or more thumbprints are stored on acomputer-readable medium and are capable of being used with the methodsdescribed herein. In another embodiment, one or more thumbprints arerepresented in a computer-transmissible signal over a computer or othercommunications network. Thumbprints according to a preferred embodimentof the invention are not derivative works under the copyright laws;therefore, they can be freely made and shared without anyone's consent.This makes such thumbprints particularly useful where the data signalsrepresent copyrightable subject matter.

In another aspect, an embodiment includes a method for efficientlyextracting a series of thumbprints from a test signal such that at leastone will match closely with one or more previously extractedthumbprints.

In a preferred embodiment, the thumbprint is extracted withoutperforming an FFT. Instead, the signal is passed through a set offilters, which is a much less computationally intensive approach andthus more efficient. Moreover, the generation of the thumbprints can beperformed on streaming or static data sources.

In another aspect, an embodiment includes a database for storing a largenumber of thumbprints and a method for constructing the database. Thedatabase stores a large number of thumbprints in a tree structure,wherein nodes contain a set of thumbprints or pointers to additionalnodes. In an embodiment, the nodes are indexed by a particular dimensionof the thumbprints contained therein.

In an embodiment for attempting to match a test thumbprint with thedatabase, the test thumbprint can be found rapidly if it is among thestored thumbprints due to the nature of the database. Because of thisindexing scheme, choosing branches in the tree to search for a testthumbprint is based on the value of the thumbprint's coordinate in theindexed dimension. The database allows for rapid and efficient matchingof thumbprints because it does not require a test thumbprint to bematched against every other thumbprint in the database. Rather, througha network of decision nodes, the database's tree structure drasticallyreduces the number of actual thumbprint comparisons that must beperformed.

In a preferred embodiment, the data signal comprises a digitizedtime-dependent signal, such as an audio waveform. Applications of thistechnology are numerous, including, but not limited to, real-timeidentification of audio streams (streaming media, radio, advertisements,Internet broadcasts, etc.), songs (any music, CDs, MP3s, etc.), video(TV, movies, etc.), patterns (weather, astral, etc.), and text(characters, books, etc.) among types of static and dynamic datasignals. The invention enables efficient real-time media contentauditing and other reporting. Because of its efficiency and performance,the invention is well suited for client software applications, embeddinginto hardware or firmware in a device, and use with wireless devices andother devices having limited resources.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram of different embodiments of a system for receiving adata signal and extracting a characteristic thumbprint therefrom.

FIG. 2 is a diagram of a thumbprint extractor in accordance with oneembodiment.

FIG. 3 is a diagram of a database for storing thumbprints in a treestructure, in accordance with an embodiment of the invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The present invention enables the extraction of characteristicinformation—i.e., a thumbprint—from a data signal. The methods describedherein are robust; hence, the data signal can be any data signalsuitable for having characteristic information extracted therefrom. In apreferred embodiment, the data signal contains media data, such as asound, music, a picture, animation, or a combination thereof. Althoughthe inventive aspects described herein can be applied to any of a widevariety of data, the invention is particularly useful in connection withtime-dependent signals or other signals that have relevant frequencycharacteristics. (As used herein, frequency can relate to time,distance, or any another suitable dimension.)

In FIG. 1, a thumbprint extractor 110 receives a data signal 105 fromany of a wide variety of sources. Based on this data signal 105, thethumbprint extractor 110 generates one or more thumbprints 115characteristic of the received signal 105. Serving as a uniqueidentifier, a thumbprint provides information relating to the identityor other characteristics of the received data signal 105. In particular,the thumbprint allows the data signal to be uniquely identified.Embodiments for thumbprint extraction are described in detail below. Theextracted thumbprint 115 is then used in a further process or stored ona medium for later use. For example, the thumbprint 115 can be comparedagainst other thumbprints (not shown) to determine the identity of thedata signal 105. Various methods for using the thumbprints are alsodescribed below.

Several different configurations for receiving the data signal 105 bythe thumbprint extractor 110 are contemplated, some examples of whichare illustrated in FIG. 1. In one embodiment, a media server 120 iscoupled to a media library 125. The media server 120 retrieves mediafiles from the media server 125 and transmits a digital broadcast to thethumbprint extractor 110 over network 130. In one embodiment, network130 includes the Internet. The digital broadcast is often determined bya playlist maintained by or accessible to the media server 120. Astreaming Internet radio broadcast is one example of this type ofembodiment. In such an embodiment, the thumbprint extractor 110 usuallydoes not have any information regarding the beginning or ending times ofindividual media items contained within the streaming content of thedata signal 105. This embodiment is also a common method for deliveringother types of media, advertisements, and other contents to one or agroup of users.

In another embodiment, the thumbprint extractor is coupled to a clientcomputer 135, which has access to a storage 140 containing data files,such as media files. The client computer 135 retrieves an individualfile from storage 140 and sends the file to the thumbprint extractor 110for generating one or more thumbprints 115 of the file. Alternatively,the computer 135 retrieves a batch of files from storage 140 and sendsthem sequentially to the thumbprint extractor 110 for generating a setof thumbprints for each file. (As used herein, “set” is understood toinclude any number of items in a grouping, including a single item.) Inone embodiment the thumbprint extractor 110 is a software programresiding on the computer 135, and in another embodiment it is maintainedon a remote server coupled to the client computer 135 over a network.

In yet another embodiment, the data signal 105 comprises a sampledbroadcast. In this embodiment, a media broadcaster 145 transmits mediain an analog signal, which is received by a receiver 150. The receiveris coupled to an analog to digital (A/D) converter 155, which samplesthe analog broadcast and converts it into a digital form for beingprocessed by the thumbprint extractor 110. In an alternative embodiment,the media broadcaster 145 transmits the data in digital form, obviatingthe need for an A/D converter 155. Types of media broadcasters 145include radio transmitters, satellite transmitters, and cable operators.In this embodiment, the thumbprint extractor 110 is used to audit thebroadcasters in order to determine which media files are broadcast atwhich times, in order to ensure compliance with broadcastingrestrictions, licensing agreements, and the like. Because the extractor110 operates without having to know the precise beginning and ending ofthe broadcast signals (which are being streamed), it can operate withoutthe cooperation or knowledge of a media broadcaster 145, and therebyensure independent and unbiased results.

Extraction of a Thumbprint

For illustration purposes, and not by way of limitation, thumbprintextraction methods are described in terms of extracting a thumbprintfrom an audio data signal. However, it is understood that any signaldependant on time or another dimension can be processed in accordancewith embodiments described herein. The functions described below can beprogrammed in a digital computer or other digital device by well knowntechniques. In addition, although the methods are described in terms ofprocessing of digital signals, it is within the ability of one skilledin the art to construct an analog system in accordance with theseembodiments.

The data signal 105 is received by a preprocessor 205, which formats thedata into the form of a sampled analog signal for use with thethumbprint extraction algorithm. In one embodiment, the preprocessor 205performs any decompression or other data conversion steps that arerequired. For example, if the data received is in the popular MP3format, the preprocessor 205 decompresses the audio file into a seriesof samples that represent the audio signal. Preferably, the preprocessor205 is adapted to recognize multiple data formats and format the dataaccordingly. Such recognition techniques are well known in the art, andinclude reading header information in the received data file.

In the example of an audio file, the original signal is sampled to apredetermined rate. In one embodiment (and in the example hereindescribed), the sample rate is 44.1 kHz. If the original signal is lowerthan the 44.1-kHz sample rate, the signal is upsampled—i.e., additionalsamples are added to the original signal to create a 44.1-kHz signal.Samples can be added to the original signal by linear interpolation orany other desired technique. If the original signal is sampled at ahigher rate than 44.1 kHz, the signal is downsampled as needed.

The preprocessor 205 is further adapted to linearly scale the amplitudeof the original signal to a predetermined range. In one embodiment (andin the example herein described), this range is selected to be theinteger range from −32767 to 32767. By selecting this range, each sampleof the normalized signal can be represented by a 16-bit binary number.The signal may be scaled by the maximum possible amplitude, for example,essentially 2^(N), where N is the width in bits of the output of the A/Dconverter 155. The precise scaling factor is unimportant because oflater normalization when the thumbprint is created. As a practicalmatter, most digital audio on the Internet is in 16-bit form. For otherapplications, it might be desirable to use either a linear or alogarithmic transformation to normalize the signal.

Once the signal is normalized, it is sent in parallel to a plurality ofbandpass filters 210. The number of bandpass filters 210 used is adesign parameter selectable by the designer; however, for purposes ofthis discussion, twelve bandpass filters 210 are described. An effectivefrequency range for the signal is divided into twelve distinct frequencybands, and each digital bandpass filter 210 is constructed to have itscritical frequencies equal to the low and high frequencies of acorresponding one of these twelve frequency bands. In an embodimentwhere the signal represents an audio signal, the effective frequencyrange is selected to be within the audible range, about 200 to 20,000Hz. Although the audible range extends as low as around 20 Hz, 200 Hz ispreferably selected as the lower end of the range in an audio signalembodiment. This is preferred because audio signals that differ tend todiffer more widely in the range 200 to 20,000 Hz than in the entireaudible range that includes the lower frequencies (e.g., 20 to 200 Hz).In a preferred embodiment, the frequency bands are selected between thisrange of 200 and 20,000 Hz and are chosen in a logarithmically evenfashion. In a preferred embodiment, the frequency bands do not overlap.In other embodiments, depending on the type of signal, other “frequency”ranges, numbers of bandpass filters, and frequency band allocationsamong the filters can be selected.

In one embodiment, each bandpass filter 210 comprises a cascade of alow-pass Chebysheff filter and a high-pass Chebysheff filter, theChebysheff filters having two, four, or six poles. Preferably, the lowerfrequency filters are selected to have fewer poles for stability, andthe higher frequency filters are selected to have more poles to achievea sharp cutoff in their frequency response. In one aspect of a preferredembodiment, the bandpass filters 210 do not perform an FFT on the datasamples. By avoiding use of an FFT, a preferred embodiment uses lesssystem resources and is thus faster and more efficient.

Starting at a particular point in time, which may be arbitrarily chosen,the digitized signal is passed through each of the twelve bandpassfilters 210 in parallel, resulting in a set of twelve filtered signals.Preferably, the first 0.05 seconds (or 2,205 samples, at this samplerate) of each of the twelve filtered signals is discarded. This0.05-second period accounts for the rise time of the bandpass filters210, wherein the twelve signals may not be effectively filtered withintheir corresponding frequency bands. Depending on the system parametersand selection of filters, this time period may be adjusted oreliminated.

Each parallel filtered signal is then scanned for a local peak by apower module 215. In one embodiment, the local peak is defined as themaximum absolute value of the signal's amplitude within a selectedinterval (e.g., one-third of a second) around a peak. In this way, thesystem scans backward and forward over the period to search of the localpeak, to avoid missing the peak. In another embodiment, peaks arelocated by looking at the average total power calculated for a series ofshort sample periods (e.g., 0.01 seconds) and looking for peaks amongthese periods. Other methods for locating local peaks in each frequencyband can be selected depending on the application.

Once a peak is located, the power module stores the absolute value ofthe amplitude of the peak and the location of the peak. Starting at theinitial peak of each filtered signal, the filtered signal is dividedinto segments. In one embodiment, and for explanation purposes, thesegment size is selected to be 0.05 seconds, or 2,205 samples. However,persons skilled in the art will recognize that his is a mere designparameter, which can be adjusted for various applications withoutdeparting from the invention. In some embodiments, location of localpeaks is a method of beat tracking, wherein the tracked series of beatpoints is stable under various digital-to-analog or decompressionconversion methods. This holds regardless of whether the beat trackingmatches a human's intuitive notion of beat.

The power module 215 then computes a value relating to a measure of thefiltered signal's power within each particular segment for a series ofsegments in each frequency band. In one embodiment, this computed powermetric is the root-mean-square (RMS) of the amplitude of the 2,205samples in each segment. The RMS amplitude can be calculated by theequation:

${P = \sqrt{\frac{\sum\limits_{i = 1}^{N}( a_{i} )^{2}}{N}}},$

where P is the computed power metric; N is the number of samples (2,205in the present example); and a_(i) is the amplitude of the i^(th)sample. These calculated values of power for each frequency band aretransmitted to a statistics module 220.

Once the power (RMS amplitude) values have been computed for the a givennumber of segments in each frequency band, the statistics module 220computes statistical information relating to the power values for eachfrequency band. In one embodiment, 400 segments of 0.05-second segmentsare used to compute the thumbprint. In one embodiment, this statisticalinformation comprises a normalized ratio of the standard deviation tothe mean of the power values of each frequency band. To perform thiscalculation, the statistics module 220 first computes the mean andstandard deviation of the power values for each frequency band. Themean, μ, and standard deviation, σ, are given by the equations:

$\mu = {{\frac{\sum\limits_{m = 1}^{M}P_{m}}{M}\mspace{14mu} {and}\mspace{14mu} \sigma} = {\sqrt{\frac{\sum\limits_{m = 1}^{M}( {P_{m} - \mu} )^{2}}{M - 1}}.}}$

where P_(m) is the computed power value of the m^(th) segment, and M isthe number of segments.

The statistics module 220 then divides the computed standard deviation,σ, by the computed mean, μ, for each frequency band. This quotient isthen normalized to an integer scale of 0 to 65534, wherein 32767corresponds to a value of σ/μ=1.0, and values above 2.0 are truncated to2.0. In a preferred embodiment, this normalization is linearlydetermined.

The power module 215 and/or the statistics module 220 can be implementedas a single module, or as distinct modules for each frequency band.

A thumbprint generator 225 is coupled to the statistics module 220. Thethumbprint generator is configured to generate thumbprint datacorresponding to the statistical information calculated for the signalin each of the frequency bands. The characteristic thumbprint for thesignal is derived from this statistical information, which is related tothe power values computed for each frequency band. Basically, thisinformation contained in the thumbprint is a measure of the variancewithin each of a set of frequency bands. With audio signals for example,is has been shown that the variance within each of a set of frequencybands is a robust measure and one of the more perceptually distinctivefeatures. In one implementation, the thumbprint is defined to be theordered 12-tuple of the normalized integer values for the ratio of thestandard deviation to the mean of the power values of each frequencyband. In this case, a thumbprint comprises a series of twelve 2-bytecoordinate values, designated T[0],T[1], . . . , T[11]. Because of thenormalization scheme described above where each quotient is a 16-bit(2-byte) integer, this thumbprint can be stored in a computer memoryusing 24 bytes of storage. This storage format is considerably moreefficient than the typical format employed by conventional methods,which can require thousands of characters. As a result, it allows forvery efficient and fast storage and comparison of thumbprints.

In the embodiment described above, the extraction of the characteristicinformation is performed in a digital environment. However, those ofordinary skill in the art can appreciate that the same or similarprocesses could be performed in other ways, such as by an analogcircuit. In an analog implementation, the thumbprint extractor 110comprises analog components for performing the data processing stepsdescribed above in connection with the digital embodiment. Suchcomponents, including bandpass filters and calculation circuitry, arecommonly known in the art.

In another embodiment of the thumbprint extraction method, the powermodule 215 does not scan each parallel filtered signal for a local peak.Instead, the power module 215 divides the filtered signal into 401consecutive 0.05-second segments, starting at the original given pointin time. The power module 215 computes the maximum absolute amplitude ineach segment. With this information, it is easy to determine which ofthe segments contained the initial peak and compute the statistics for401 segments starting with that peak segment. Contrasted with theembodiment described above where the system scans backward and forwardover 14,700 samples (one third of a second of samples) to compareamplitudes of each sample, this embodiment need only scan about 7segments (about one third of a second of segments) to compare theirmaximums and find a peak. This may not result in exactly the same peaksas the earlier method, but it does give a reasonably stable answer. Thisembodiment may be termed the approximation method.

Yet another embodiment of the thumbprint extraction method is called the“leaf-rake” method. In this method, the filtered signals are dividedinto segments, and a local peak is located, e.g., as described above.The first 400 segments in each frequency band are considered, and 32 ofthe 400 segments are chosen. This choice is made according to a sequenceof 32 pairs of values for (1) time/segments past the local peak and (2)frequency band. These values are fixed but arbitrarily chosen by thedesigner. The computed power value of each of these 32 segments is thenarranged in a 32-value vector, and this vector is normalized by (1)translating so that the average of the values is zero, and (2) scalinglinearly so that the sum of the squares of the values is one. Thisresulting normalized vector is taken to be the thumbprint. A usefulobservation is that the dot product of any two such thumbprint vectorsis precisely the correlation coefficient of the un-normalized computedpower values. In addition, the square of the Euclidean distance betweenthe two vectors is the two minus twice the correlation coefficient.Therefore, the Euclidean distance, which is useful for distance measureswithin a database, becomes a function of the correlation coefficient dueto the normalization scheme described.

In empirical studies, it has been found that the portion of a song from40 to 70 seconds into the song is typically the most “stable” portion ofthe song in terms of the thumbprint extraction techniques described.This can be explained by observing that during this time period in atypical song, most or all of the instruments have come into the song,any voices have been introduced, and the initial building of the song iscompleted. Therefore, in cases where the signal is a song or other audiosignal and its start and stop times are known (e.g., the signal comesfrom an MP3 file), thumbprints are preferably taken from the song oraudio signal within this “stable” range.

In some cases, it is desirable to extract a series of thumbprints for adata signal, including overlapping thumbprints. For example, the presentinvention is particularly well suited to the identification of streamingdata files, such as streaming audio over networks such the Internet. Forexample, it may be desired to compare a received data signal to acanonical database of thumbprints that relate to known data signals(methods for which are described below). This situation might arisewhere streaming media is received (i.e., the starting and ending timesof individual media items are not known), and one desires to identifythe particular media items contained in the stream by comparingthumbprints generated for the media against thumbprints in the canonicaldatabase. Because the thumbprints to be compared preferably representthe same portion of a data signal, a series of thumbprints of thereceived data signal are generated. (This problem, of course, is notpresented when comparing files of known start and stop times, as apredetermined thumbprint position can be selected.)

A series of overlapping thumbprints can be generated using one of theembodiments described above. If the approximation method is used,successive signals can be processed rapidly by retaining the RMSamplitude computations for every segment in each frequency band,determining the next local peak after the original local peak, andcomputing the additional segments needed to compute the approximatecharacteristic starting at the second peak (typically six to sevensegments). This can be iterated for as long as the signal lasts, oruntil a match is found.

Matching a Thumbprint

As explained above, the thumbprint extracted from a first data signalcan be compared against one or more thumbprints extracted from otherreference data signals. If the thumbprints match, this is an indicationthat the first data signal is the same as the corresponding referencedata signal. For example, a thumbprint is extracted from an unknownaudio file, which is then compared against a database of referencethumbprints extracted from known songs. If the thumbprint matches areference thumbprint, the unknown audio file is likely to be the samesong as the one from which the matched thumbprint was extracted. Thismethod can be used to determine the identity of the unknown data signaleven if the songs corresponding to the two matched thumbprints are in adifferent file format or have a different sample rate.

In one embodiment, two thumbprints match if they are identical.Accordingly, two thumbprints can be compared bit by bit to determine theoccurrence of a match. In another embodiment, a predetermined toleranceis incorporated to account for minor variations in source data signals.For example, certain compression schemes and round-off errors may causethumbprints of the “same” data signal to have slightly differentthumbprints. Therefore, two thumbprints match in this embodiment iftheir component statistical measures are within a predeterminedEuclidean distance, which is a design parameter that can be variedaccording to an application's tolerance for false positives versus falsenegatives.

In another embodiment, a database is provided for comparing thethumbprint to a large number of reference thumbprints. The databaseallows the matching of small, generated thumbprints against a canonicallibrary, which enables very fast thumbprint matching. Because the numberof reference thumbprints can be very large depending on the application(e.g., tens of millions of thumbprints), it may be impractical tocompare a test thumbprint against all thumbprints in a database.Accordingly, in one embodiment a database of thumbprints is constructedas a tree structure, containing “Leaf” and “Non-Leaf” nodes. A specificembodiment of the tree structure and thumbprints are described inrelation to selected parameters; however, it is within the scope of theordinary skill in the art to vary these design parameters depending onthe application and desired performance.

FIG. 3 shows a specific embodiment of the database in a tree structure.The starting point in the database is a root node. The databasecomprises Leaf nodes, which contain up to a predetermined maximum numberof thumbprints, and Non-Leaf nodes, which point to subnodes (one or moreLeaf or Non-Leaf nodes) further down the tree. Because of the maximumnumber of thumbprints allowed in a particular Leaf node, the treestructure contains more than the maximum number of thumbprints, theremust be higher-level (Non-Leaf) nodes in the tree (i.e., the root nodecannot be a Leaf node).

In one embodiment, a Leaf node represents between 1 and 2000thumbprints, which may be stored in any order. Each Non-Leaf nodecontains an array of up to 24 pointers that point to subsidiary nodes,or subnodes, {N[j]; for j=1, . . . , 24} in the tree. Each of thesesubsidiary nodes may be a Leaf or a Non-Leaf node. Each Non-Leaf nodealso identifies an axis, i, which is an index from 0 to 11 (whichcorresponds to the twelve coordinates or tuples of a thumbprint) and aset of 23 keys {K[j]; j=1, . . . , 23}, which are integer values between0 and 65534. The axis, i, specifies the coordinate or tuple along whichthe thumbprints are separated by the Non-Leaf node. The keys specify theboundaries of the coordinate value by which the thumbprints are placedin the subnodes. For example, if i=3, the thumbprints are divided bytheir fourth coordinate, T[3]. Each thumbprint is thus located in abranch of the tree pointed to by the vector N[j], where j is determinedby the keys between which the coordinate falls according therelationship:

K[j]<T[3]<K[j+1].

For example, the thumbprints in the first Leaf node in FIG. 3 share theproperty that their tuple T[i] has a value between 0 and the value ofK[1].

Once the database is constructed, it can be searched for a match with atest thumbprint. As described above accordance with a thumbprintextraction algorithm, a test thumbprint comprises a series of twelve2-byte coordinate values, herein designated T[0],T[1], . . . , T[11]. ALeaf node is searched by comparing the test thumbprint against everythumbprint in the leaf and returning the closest match, if any issuitable. Searching a Non-Leaf for a test thumbprint requires that theproper next node path be determined. The direction of the next node downthe tree structure to be searched is given by the pointer N[j], wherethe path j is determined by:

K[j]<T[i]<K[j+1],

where i is the Non-Leaf node's index value. Therefore, the Non-Leafnode's index value determines which of the thumbprint's dimensions bywhich the thumbprints are indexed by the keys, and the keys thendetermine which path should be taken to located the thumbprint. If T[i]is less than K[1] then node N[1] is searched, and if T[i] is greaterthan K[23] then N[24] is searched.

In another aspect of an embodiment, if a Non-Leaf search of a subsidiarynode returns a thumbprint whose Euclidean distance from the testthumbprint is greater than the difference of N[i] and K[j], or thedifference between N[i] and K[j+1], then the adjacent node or nodes(N[j−1] and/or N[j+1]) are searched as well. This avoids the error ofmissing a close match that lies just on the other side of a subnodeboundary. However, the algorithm has to search down through two branchesof the tree.

For optimal performance in one embodiment, the tree-structured databaseis balanced. In a balanced tree structure, the paths from the root nodeto any Leaf are the same distance or within 1 level of each other. Thisfeature tends to make the time required to fully search the databaseconsistent, avoiding particularly long times when the search algorithmwould otherwise have to travel far down the tree structure. In anotherembodiment, the database is preferably spread as evenly as possible, sothat small differences in the axis coordinate do not result in largedifferences in which subnode is selected.

In one embodiment for constructing a tree database, a list ofthumbprints is obtained. First, a histogram is computed for each axis i.In one embodiment, there are twelve axes corresponding to the twelvecoordinates, or characteristic values T[i]. Each histogram contains acount of the number of thumbprints that have a particular coordinatevalue, T[i], for each possible coordinate value, integers from 0 to65534. Using these twelve histograms, for each axis the correspondinghistogram is used to compute the values of the 23 keys that would splitthe thumbprints into 24 approximately equal sublists. In other words,the first key K[1] is selected to be larger than the coordinate valuesof one twenty-fourth of the thumbprints in the list, the second key K[2]is selected to be larger than two twenty-fourths of the thumbprints inthe list, and so on. Accordingly, the keys are selected to equallydivide the thumbprints according to a particular coordinate T[i], foreach of the twelve histograms i =0, . . . , 11.

In the tree structure of an embodiment, the node can only be divided byone dimension, or axis. For each axis, the granularity is the smallestof the differences between two successive keys, between the largest keyand 65534, or between the lowest key and 0. Accordingly, it is desirableto select the axis that provides the largest granularity, as determinedby the keys computed above. Therefore, a root Non-Leaf node isconstructed having an axis i set to the axis with the largestgranularity and having keys {KW; j=1, . . . , 23} set to the 23 keyscomputed for that axis. The list of thumbprints is then split into 24sublists according to the keys, i.e., thumbprints are grouped accordingto their coordinate T[i] between the boundaries defined by the keys.Pointers {N[j]; j=1, . . . , 24} are further added to the Non-Leaf nodeto point to each of the 24 subnodes. For each newly created subnode, ifa subnode has fewer than 2000 thumbprints, the subnode is designated asa Leaf node and contains these thumbprints. Otherwise, if a newlycreated subnode has more than 2000 thumbprints, the subnode isdesignated as a Non-Leaf node. This Non-Leaf node, containing more thanthe predetermined maximum number of thumbprints, is further divided byrecursively applying this algorithm until all nodes have been dividedinto Leaf nodes having fewer than the maximum of 2000 thumbprintstherein.

The design parameters described above are by way of example only and canbe varied without departing from the inventive concepts herein. Forexample, selecting the branching factor affects how wide and how deepthe tree structure will be for a given amount of database entries. Forthe branching factor j=24, the database will not be too deep so thatperformance is substantially affected) if the database contains a fewmillion thumbprints. Selecting the maximum number of thumbprints allowedin a Leaf affects the time that it takes to search a particular Leafnode. In additional, dividing the thumbprints at each Non-Leaf node bythe axis that provides maximum granularity ensures that the coordinatechosen will give the greatest spread of values.

Additional Improvements and Applications

In another embodiment, the accuracy of matching a test thumbprint to areference thumbprint is improved by storing the relative start time ofeach thumbprint in the database. In this embodiment, a positive match issignaled only when two different sections of the signal matchthumbprints in the database whose start times differ by the same (orwithin a selected interval) amount as the start times of the matchedsections. Comparing data signals using multiple thumbprints and/or theabsolute or relative position of one or more thumbprints in the signaldrastically increases the accuracy of this method.

The embodiments described can be applied to a number of additionalapplications. For example, a computer program may use the thumbprintextraction and comparison algorithms described to identify digital mediafiles, such as MP3 files. In the case of MP3 files, the determinedidentity of the song can be compared against a canonical database, whichcan be used to update or repair file information such as ID3 tags. Inanother embodiment, a client extracts a thumbprint from a digital signal(e.g., a media file) and sends the thumbprint to a server, the servercompares the thumbprint against a database to determine its identity,and the server returns to the client information relating to theoriginal signal.

In yet another embodiment, a software program residing on a computermonitors any audio sent to an audio output device. Upon detecting anyplaying of the media, the program extracts a thumbprint of the signaland logs the thumbprint or information relating to the signal derivedfrom the thumbprint. This log can then be forwarded over a network to aserver, which can then track the user's playing of the audio files,thereby allowing efficient and accurate billing to the user, forexample, in a fee-based audio subscription system.

Similarly, the algorithms can be used to track advertisements or thelike played on a computer. This enables efficient and accuratemonitoring of a user's reception of such advertisements, allowingbusiness models such as those involving compensating users for viewingthe advertisements, or pricing advertisements to advertisers based onnumbers of impressions.

Embodiments for identifying streaming media can be used to efficientlyaudit Internet radio stations or other media providers for compliancewith licenses and royalties. Implemented on personal computers, theinventive techniques enable P2P license auditing and means for enforcingcopyrights (e.g., by filtering out unlicensed media) while allowing thesharing of media and other copyrighted material.

In additional, the techniques described can be implemented in hardwareor firmware, in addition to the software embodiments described. Forexample, code for performing the methods can be embedded in a hardwaredevice, such as an MP3 player, for example in an ASIC or other customcircuitry. This combines the benefits of the invention with thecapabilities of many different devices. In a hardware embodiment,portions or all of the methods can be performed by analog circuitry.

The foregoing description of the embodiments of the invention has beenpresented for the purposes of illustration and description. It is notintended to be exhaustive or to limit the invention to the precise formsdisclosed. Persons skilled in the relevant art can appreciate that manymodifications and variations are possible in light of the aboveteaching. It is therefore intended that the scope of the invention belimited not by this detailed description, but rather by the claimsappended hereto.

1-50. (canceled)
 51. A method comprising: filtering a data signal toproduce a plurality of filtered signals, at least two of the filteredsignals having a different frequency range; for each filtered signal inthe plurality of filtered signals, computing a measure of powercontained within a segment of the each filtered signal, the computing ofthe measure of power comprising scanning the segment to locate a localpeak within the segment, the local peak comprising a maximum absolutevalue of amplitude in the segment; determining characteristic data forthe data signal, by a computer processor, wherein the characteristicdata for the data signal is determined based on the computed measures ofpower; and storing a digital thumbprint on a non-transitorycomputer-readable storage medium, the digital thumbprint comprising thedetermined characteristic data for the data signal.
 52. The method ofclaim 51, wherein the data signal contains encoded content from a groupof encoded content consisting of encoded media content, encoded audiocontent, and encoded video content.
 53. The method of claim 51, furthercomprising: receiving the data signal as streaming media over a network.54. The method of claim 51, further comprising: receiving the datasignal in real time over a network.
 55. The method of claim 51, furthercomprising: sampling a broadcast signal to obtain the data signal. 56.The method of claim 51, wherein the plurality of filtered signals havefrequency ranges that are in a logarithmically even fashion.
 57. Themethod of claim 51, wherein the measure of power contained within theeach filtered signal comprises the root-mean-square amplitudes for eachof a series of samples of the each filtered signal.
 58. The method ofclaim 51, wherein the measure of power contained within the eachfiltered signal is a function of the root-mean-square amplitude of aseries of samples from the segment of the each filtered signal.
 59. Themethod of claim 51, wherein the characteristic data for the data signalis determined using a statistical function comprising the ratio of thestandard deviation to the mean of the measures of power computed for theeach filtered signal.
 60. A system comprising: a processor; a storagemedium for tangibly storing thereon program logic for execution by theprocessor, the program logic comprising: filtering logic executed by theprocessor for filtering a data signal to produce a plurality of filteredsignals, at least two of the filtered signals having a differentfrequency range; computing logic executed by the processor forcomputing, for each filtered signal in the plurality of filteredsignals, a measure of power contained within the a segment of the eachfiltered signal, the computing logic comprising scanning logic forscanning the segment to locate a local peak within the segment, thelocal peak comprising a maximum absolute value of amplitude in thesegment; determining logic executed by the processor for determiningcharacteristic data for the data signal, by a computer processor,wherein the characteristic data for the data signal is determined basedon the computed measures of power; and storing logic executed by theprocessor for storing in the storage medium a digital thumbprint, thedigital thumbprint comprising the determined characteristic data for thedata signal.
 61. The system of claim 60, wherein the measure of powercontained within the each filtered signal comprises the root-mean-squareamplitudes for each of a series of samples of the each filtered signal.62. The system of claim 60, wherein the measure of power containedwithin the each filtered signal is a function of the root-mean-squareamplitude of a series of samples from the segment of the each filteredsignal.
 63. The system of claim 60, wherein the characteristic data forthe data signal is determined using a statistical function comprisingthe ratio of the standard deviation to the mean of the measures of powercomputed for the each filtered signal.
 64. A non-transitory computerreadable storage medium comprising computer program code for executionby a processor, the computer program code comprising instructions for:filtering a data signal to produce a plurality of filtered signals, atleast two of the filtered signals having a different frequency range;for each filtered signal in the plurality of filtered signals, computinga measure of power contained within a segment of the each filteredsignal, the computing of the measure of power comprising scanning thesegment to locate a local peak within the segment, the local peakcomprising a maximum absolute value of amplitude in the segment;determining characteristic data for the data signal, by a computerprocessor, wherein the characteristic data for the data signal isdetermined based on the computed measures of power; and storing adigital thumbprint, the digital thumbprint comprising the determinedcharacteristic data for the data signal.
 65. The non-transitory computerreadable storage medium of claim 64, wherein the measure of powercontained within the each filtered signal comprises the root-mean-squareamplitudes for each of a series of samples of the each filtered signal.66. The non-transitory computer readable storage medium of claim 64,wherein the measure of power contained within the each filtered signalis a function of the root-mean-square amplitude of a series of samplesfrom the segment of the each filtered signal.
 67. The non-transitorycomputer readable storage medium of claim 64, wherein the characteristicdata for the data signal is determined using a statistical functioncomprising the ratio of the standard deviation to the mean of themeasures of power computed for the each filtered signal.
 68. Thenon-transitory computer readable storage medium of claim 64, wherein thedata signal contains encoded content from a group of encoded contentconsisting of encoded media content, encoded audio content, and encodedvideo content.
 69. The non-transitory computer readable storage mediumof claim 64, further comprising: receiving the data signal as streamingmedia over a network.
 70. The non-transitory computer readable storagemedium of claim 64, wherein the plurality of filtered signals havefrequency ranges that are in a logarithmically even fashion.